import request from "@/utils/request"

//列表查询
export const queryAllApi = () => request.get(`/depts`)

//新增部门
export const saveDeptApi = (data) => request.post(`/depts`,data)


//根据ID查询部门
export const queryByIdApi = (id) => request.get(`/depts/${id}`)


//修改部门
export const updateDeptApi = (data) => request.put(`/depts`,data)


//删除部门
export const deleteByIdApi = (id) => request.delete(`/depts?id=${id}`)